<?php

class IndexController extends Zend_Controller_Action
{

	public function init()
	{

	}

	public function indexAction(){
		session_unset();
		
		if ($this->_request->getPost() != array()){
			$acesso = new Acesso($this->_getAllParams());
			
			if($acesso->validarUsuarioSenha()){
				$this->_forward("inicio");
			}else{
				Zend_Layout::getMvcInstance()->assign('msg', 'Usuario ou senha Invalidos!');			
			}

		}
		

	}

	public function inicioAction(){

	}


}

